<template>
	<view class="padding">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad(data) {
			let title = ['', '隐私协议', '用户协议', '关于我们'];
			uni.setNavigationBarTitle({
				title: title[data.type]
			});
			this.initData(data.type)
		},
		methods: {
			// 3关于我们2用户协议1隐私协议
			initData(type) {
				let parm = {
					type
				}
				this.$u.api._contents(parm).then(res => {
					this.content = res.data;
				})
			}
		},
	}
</script>

<style>
</style>